package com.shuda.business.user.service;

import com.shuda.common.result.Result;
import com.shuda.db.user.entity.User;

public interface IUserManager {
    Result<User> getUserById(Long id);
    Result<User> getUserByUsername(String username);
    Result<User> createUser(User user);
    Result<User> updateUser(User user);
    Result<Void> deleteUser(Long id);
    Result<Boolean> existsByUsername(String username);
}